package com.lzhsite.technology.designPattern.command.RestaurantDemo;

public class CookManager {

	public static void runCookManager() {

		HotCook cook1 = new HotCook("张三");
		HotCook cook2 = new HotCook("李四");
		ColdCook cook3 = new ColdCook("王五");
		ColdCook cook4 = new ColdCook("钱六");

		Thread thread1 = new Thread(cook1);
		thread1.start();

		Thread thread2 = new Thread(cook2);
		thread2.start();

		Thread thread3 = new Thread(cook3);
		thread3.start();

		Thread thread4 = new Thread(cook4);
		thread4.start();

	}
}
